package tech.aistar.wyymusicplayer.service;

import tech.aistar.wyymusicplayer.pojo.User;

public interface UserService {
    /**
     * 根据邮箱查找用户
     * @param email
     * @return
     */
    User findByEmail(String email);
    boolean registerUser(String username);

    Boolean InsertMail(String email);

    boolean isDefualtUsername(String username);
    boolean usernameExists(String username);
    boolean updateUsername(Integer userId, String newUsername);

    boolean UpdateisDefaultUsername(Integer userId);

    User GetById(Integer id);
}
